home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 23 / AACD 23.iso / AACD / Programming / Warp3D_Devel / Include / fd / Warp3DPPC.fd.vbcc < prev    next >
Encoding:
Text File  |  2001-06-16  |  4.3 KB  |  135 lines

  1. *
  2. **
  3. ** Warp3D fd file for library generation
  4. ** $VER: Warp3D.fd 1.0 (27.07.98)
  5. **
  6. **
  7. ** This file is part of the Warp3D Project.
  8. ** Warp3D is copyrighted
  9. ** (C) 1998 Sam Jordan, Hans-Jörg Frieden, Thomas Frieden
  10. ** All rights reserved
  11. **
  12. ** See the documentation for conditions.
  13. **
  14. *
  15. ##base _Warp3DPPCBase
  16. ##abi PPC0
  17. ##bias 30
  18. ##public
  19. *
  20. *   Context functions (Context.c)
  21. *
  22. W3D_CreateContext(error, CCTags)(r3/r4)
  23. W3D_DestroyContext(context)(r3)
  24. W3D_GetState(context,state)(r3/r4)
  25. W3D_SetState(context,state,action)(r3/r4/r5)
  26. *
  27. *   Driver functions (Driver.c)
  28. *
  29. W3D_CheckDriver()()
  30. W3D_LockHardware(context)(r3)
  31. W3D_UnLockHardware(context)(r3)
  32. W3D_WaitIdle(context)(r3)
  33. W3D_CheckIdle(context)(r3)
  34. W3D_Query(context,query,destfmt)(r3/r4/r5)
  35. W3D_GetTexFmtInfo(context,format,destfmt)(r3/r4/r5)
  36. *
  37. *   Texture functions (Texture.c)
  38. *
  39. W3D_AllocTexObj(context,error,ATOTags)(r3/r4/r5)
  40. W3D_FreeTexObj(context,texture)(r3/r4)
  41. W3D_ReleaseTexture(context,texture)(r3/r4)
  42. W3D_FlushTextures(context)(r3)
  43. W3D_SetFilter(context,texture,min,mag)(r3/r4/r5/r6)
  44. W3D_SetTexEnv(context,texture,envparam,envcolor)(r3/r4/r5/r6)
  45. W3D_SetWrapMode(context,texture,mode_s,mode_t,bordercolor)(r3/r4/r5/r6/r7)
  46. W3D_UpdateTexImage(context,texture,teximage,level,palette)(r3/r4/r5/r6/r7)
  47. W3D_UploadTexture(context,texture)(r3/r4)
  48. *
  49. *   Drawing functions
  50. *
  51. W3D_DrawLine(context,line)(r3/r4)
  52. W3D_DrawPoint(context,point)(r3/r4)
  53. W3D_DrawTriangle(context,triangle)(r3/r4)
  54. W3D_DrawTriFan(context,triangles)(r3/r4)
  55. W3D_DrawTriStrip(context,triangles)(r3/r4)
  56. *
  57. *   Effect functions
  58. *
  59. W3D_SetAlphaMode(context,mode,refval)(r3/r4/r5)
  60. W3D_SetBlendMode(context,srcfunc,dstfunc)(r3/r4/r5)
  61. W3D_SetDrawRegion(context,bm,yoffset,scissor)(r3/r4/r5/r6)
  62. W3D_SetFogParams(context,fogparams,fogmode)(r3/r4/r5)
  63. W3D_SetColorMask(context,red,green,blue,alpha)(r3/r4/r5/r6/r7)
  64. W3D_SetStencilFunc(context,func,refvalue,mask)(r3/r4/r5/r6)
  65. *
  66. *   ZBuffer functions
  67. *
  68. W3D_AllocZBuffer(context)(r3)
  69. W3D_FreeZBuffer(context)(r3)
  70. W3D_ClearZBuffer(context,clearvalue)(r3/r4)
  71. W3D_ReadZPixel(context,x,y,z)(r3/r4/r5/r6)
  72. W3D_ReadZSpan(context,x,y,n,z)(r3/r4/r5/r6)
  73. W3D_SetZCompareMode(context,mode)(r3/r4)
  74. *
  75. *   Stencil buffer functions
  76. *
  77. W3D_AllocStencilBuffer(context)(r3)
  78. W3D_ClearStencilBuffer(context,clearval)(r3/r4)
  79. W3D_FillStencilBuffer(context,x,y,width,height,depth,data)(r3/r4/r5/r6/r7/r8/r9)
  80. W3D_FreeStencilBuffer(context)(r3)
  81. W3D_ReadStencilPixel(context,x,y,st)(r3/r4/r5/r6)
  82. W3D_ReadStencilSpan(context,x,y,n,st)(r3/r4/r5/r6/r7)
  83. *
  84. *   V2
  85. *
  86. W3D_SetLogicOp(context,operation)(r3/r4)
  87. W3D_Hint(context,mode,quality)(r3/r4/r5)
  88. W3D_SetDrawRegionWBM(context,bitmap,scissor)(r3/r4/r5)
  89. W3D_GetDriverState(context)(r3)
  90. W3D_Flush(context)(r3)
  91. W3D_SetPenMask(context,pen)(r3/r4)
  92. W3D_SetStencilOp(context,sfail,dpfail,dppass)(r3/r4/r5/r6)
  93. W3D_SetWriteMask(context,mask)(r3/r4)
  94. W3D_WriteStencilPixel(context,x,y,st)(r3/r4/r5/r6)
  95. W3D_WriteStencilSpan(context,x,y,n,st,mask)(r3/r4/r5/r6/r7/r8)
  96. W3D_WriteZPixel(context,x,y,z)(r3/r4/r5/r6)
  97. W3D_WriteZSpan(context,x,y,n,z,mask)(r3/r4/r5/r6/r7/r8)
  98. W3D_SetCurrentColor(context,color)(r3/r4)
  99. W3D_SetCurrentPen(context,pen)(r3/r4)
  100. W3D_UpdateTexSubImage(context,texture,teximage,lev,palette,scissor,srcbpr)(r3/r4/r5/r6/r7/r8/r9)
  101. W3D_FreeAllTexObj(context)(r3)
  102. W3D_GetDestFmt()()
  103. W3D_DrawLineStrip(context,lines)(r3/r4)
  104. W3D_DrawLineLoop(context,lines)(r3/r4)
  105. W3D_GetDrivers()()
  106. W3D_QueryDriver(driver,query,destfmt)(r3/r4/r5)
  107. W3D_GetDriverTexFmtInfo(driver,format,destfmt)(r3/r4/r5)
  108. W3D_RequestMode(taglist)(r3)
  109. W3D_SetScissor(context,scissor)(r3/r4)
  110. W3D_FlushFrame(context)(r3)
  111. W3D_TestMode(modeid)(r3)
  112. W3D_SetChromaTestBounds(context,texture,rgba_lower,rgba_upper)(r3/r4/r5/r6)
  113. W3D_ClearDrawRegion(context,color)(r3/r4)
  114. *
  115. * V3
  116. *
  117. W3D_DrawTriangleV(context,triangle)(r3/r4)
  118. W3D_DrawTriFanV(context,triangles)(r3/r4)
  119. W3D_DrawTriStripV(context,triangles)(r3/r4)
  120. W3D_GetScreenmodeList()()
  121. W3D_FreeScreenmodeList(list)(r3)
  122. W3D_BestModeID(tags)(r3)
  123. *
  124. * V4
  125. *
  126. W3D_VertexPointer(context,pointer,stride,mode,flags)(r3/r4/r5/r6/r7)
  127. W3D_TexCoordPointer(context,pointer,stride,unit,off_v,off_w,flags)(r3/r4/r5/r6/r7/r8/r9)
  128. W3D_ColorPointer(context,pointer,stride,format,mode,flags)(r3/r4/r5/r6/r7/r8)
  129. W3D_BindTexture(context,tmu,texture)(r3/r4/r5)
  130. W3D_DrawArray(context,primitive,base,count)(r3/r4/r5/r6)
  131. W3D_DrawElements(context,primitive,type,count,indices)(r3/r4/r5/r6/r7)
  132. W3D_SetFrontFace(context,direction)(r3/r4)
  133. ##end
  134.  
  135.